package ru.rs.interfaces.impl;

import java.util.List;

import ru.rs.interfaces.Input;
import ru.rs.interfaces.TouchHandler;
import android.view.View;

public class InputImpl implements Input {

	private TouchHandler touchHandler;

	public InputImpl(View v, float sX, float sY) {

		touchHandler = new SingleTouchHandler(v, sX, sY);

	}

	public boolean isTouchDown(int pointer) {

		return touchHandler.isTouchDown(pointer);
	}

	public int getTouchX(int pointer) {

		return touchHandler.getTouchX(pointer);
	}

	public int getTouchY(int pointer) {

		return touchHandler.getTouchY(pointer);
	}

	public List<TouchEvent> getTouchEvents() {

		return touchHandler.getTouchEvents();
	}

}
